package com.itheima.controller;

import com.itheima.entity.Result;
import com.itheima.utils.QiniuUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 戴金华
 * @date 2019-12-14 8:15
 */
@RestController
@RequestMapping("/upload")
public class UploadController {


    @RequestMapping("/getToken")
    public Result getToken(){
        String token = QiniuUtils.getToken();
        return new Result(true,"",token);
    }
}
